home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / vdi.arc / VDIGTEXT.C < prev   
Encoding:
Text File  |  1985-05-01  |  926 b   |  39 lines

  1. /*
  2.  *  Program to output 10 pages of graphics
  3.  *  text using the VDI graphics text feature.
  4.  */
  5.  
  6. main()
  7. {
  8. int  workout[66];
  9. int  dev_handle;
  10. int  i,j;
  11. char input_string[2];
  12.  
  13. static int   echo_xy[] = {0, 0};
  14. static int   workin[]  = {1,1,1,1,1,1,1,1,1,1,
  15.                           1,'D','I','S','P','L','A','Y',' '};
  16.  
  17.     /* initialize the device and put characteristics in workout */
  18.     v_opnwk(workin,&dev_handle,workout);
  19.  
  20.     for (i = 1; i <= 10; ++i) {
  21.  
  22.         for (j = 1; j <= 25; ++j) {
  23.  
  24.             /* output graphics text */
  25.             v_gtext(dev_handle,1,j*911,
  26.                       "This is a test of the VDI graphics text.");
  27.             v_gtext(dev_handle,16384,j*911,
  28.                       "This is a test of the VDI graphics text.");
  29.         }
  30.  
  31.         /* clear the screen */
  32.         v_clrwk(dev_handle);
  33.     }
  34.  
  35.     /* close workstation */
  36.     v_clswk(dev_handle);
  37.  
  38. }
  39.